package top.psjj.mall.service.api;

import com.github.pagehelper.PageInfo;
import top.psjj.mall.model.dto.ProductListReq;
import top.psjj.mall.model.po.Product;

public interface ProductService {
    void save(Product product);

    void update(Product product);

    void delete(Integer id);

    void updateBatchSellStatus(Integer[] ids, Integer sellStatus);

    PageInfo listForAdmin(Integer pageNum, Integer pageSize);

    Product detail(Integer id);

    PageInfo listForUser(ProductListReq productListReq);
}
